package com.emr.module.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.emr.module.mapper.QiyongyuanMapper;
import com.emr.module.domain.Qiyongyuan;
import com.emr.module.service.IQiyongyuanService;
import com.emr.common.support.Convert;

/**
 * 预案组启用 服务层实现
 * 
 * @author emr
 * @date 2019-03-01
 */
@Service
public class QiyongyuanServiceImpl implements IQiyongyuanService 
{
	@Autowired
	private QiyongyuanMapper qiyongyuanMapper;

	/**
     * 查询预案组启用信息
     * 
     * @param id 预案组启用ID
     * @return 预案组启用信息
     */
    @Override
	public Qiyongyuan selectQiyongyuanById(Integer id)
	{
	    return qiyongyuanMapper.selectQiyongyuanById(id);
	}
	
	/**
     * 查询预案组启用列表
     * 
     * @param qiyongyuan 预案组启用信息
     * @return 预案组启用集合
     */
	@Override
	public List<Qiyongyuan> selectQiyongyuanList(Qiyongyuan qiyongyuan)
	{
	    return qiyongyuanMapper.selectQiyongyuanList(qiyongyuan);
	}
	
    /**
     * 新增预案组启用
     * 
     * @param qiyongyuan 预案组启用信息
     * @return 结果
     */
	@Override
	public int insertQiyongyuan(Qiyongyuan qiyongyuan)
	{
	    return qiyongyuanMapper.insertQiyongyuan(qiyongyuan);
	}
	
	/**
     * 修改预案组启用
     * 
     * @param qiyongyuan 预案组启用信息
     * @return 结果
     */
	@Override
	public int updateQiyongyuan(Qiyongyuan qiyongyuan)
	{
	    return qiyongyuanMapper.updateQiyongyuan(qiyongyuan);
	}

	/**
     * 删除预案组启用对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteQiyongyuanByIds(String ids)
	{
		return qiyongyuanMapper.deleteQiyongyuanByIds(Convert.toStrArray(ids));
	}
	
}
